﻿<%@ Page MasterPageFile="Site1.Master"  Language="C#" AutoEventWireup="true" CodeBehind="ReportToRep.aspx.cs" Inherits="EqRepair.Web.ReportToRep" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphMainContent" runat="server">
    <asp:DropDownList ID="DropDownList1" runat="server" 
    DataSourceID="LinqDataSource1" DataTextField="Name" DataValueField="Id" 
    onselectedindexchanged="DropDownList1_SelectedIndexChanged">
</asp:DropDownList>
<asp:LinqDataSource ID="LinqDataSource1" runat="server" 
    ContextTypeName="EqRepair.Code.Data.DataClasses2DataContext" 
    TableName="Organizations">
</asp:LinqDataSource>
    <asp:Button ID="but" runat="server" onclick="Button1_Click" Text="Выбрать" />
<asp:GridView ID="GridView1" runat="server" BackColor="White" 
    BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" CellPadding="3" 
    ForeColor="Black" GridLines="Vertical" AutoGenerateColumns="False">
    <Columns>
        <asp:BoundField DataField="r1" HeaderText="Агрегат" />
        <asp:BoundField DataField="r2" HeaderText="Узел к замене" />
        <asp:BoundField DataField="r3" HeaderText="Планируемая дата замены" />
        <asp:BoundField DataField="r4" HeaderText="Межремонтный ресурс в днях" />
        <asp:BoundField DataField="r5" HeaderText="Время ремонта (чел./час)" />
        <asp:BoundField DataField="r6" HeaderText="Стоимость" />
    </Columns>
    <FooterStyle BackColor="#CCCCCC" />
    <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
    <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
    <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
    <AlternatingRowStyle BackColor="#CCCCCC" />
</asp:GridView>
<asp:Label ID="sum" runat="server" Text=""></asp:Label>
</asp:Content>
